package com.wuwei.service;

import com.alibaba.csp.sentinel.annotation.SentinelResource;
import com.alibaba.csp.sentinel.slots.block.BlockException;
import org.springframework.stereotype.Service;

/**
 * @description: TestService <br>
 * @date: 2021/2/21 20:44 <br>
 * @author: wuwei666 <br>
 * @version: 1.0 <br>
 */
@Service
public class TestService {

    @SentinelResource(value = "service", blockHandler = "linkTest_return")
    public String linkTest(){
        return "link test";
    }
    public String linkTest_return(BlockException blockException){
        return "/(ㄒoㄒ)/~~ linkTest";
    }
}
